package homework01;

import java.util.Scanner;
/**
 * 案例:减肥计划
 * 需求:输入星期数，显示今天的减肥活动
 */
public class Test01 {
    public static void main(String[] args) {
        show();

    }
    public static void show(){
        Scanner sc=new Scanner(System.in);
        while (true) {
            System.out.println("请输入星期数！");
            String num = sc.nextLine();
            if ("星期一".equals(num)) {
                System.out.println("跑步");
            } else if ("星期二".equals(num)) {
                System.out.println("游泳");
            } else if ("星期三".equals(num)) {
                System.out.println("吃一顿");
            } else if ("星期四".equals(num)) {
                System.out.println("慢走");
            } else if ("星期五".equals(num)) {
                System.out.println("动感单车");
            } else if ("星期六".equals(num)) {
                System.out.println("拳击");
            } else if ("星期天".equals(num)) {
                System.out.println("爬山");
            } else {
                if ("exit".equals(num)){
                    System.out.println("退出成功！");
                    break;
                }
                System.out.println("输入无效");
            }

        }
    }
}
